package ch07.home;

class Exercise7_05 {
	public static void main(String[] args) {
		Tv t = new Tv();
	}
}

class Product {
	int price;
	int bonusPoint;
	
	// <1
	Product() {}
	// 1>

	Product(int price) {
		this.price = price;
		bonusPoint = (int) (price / 10.0);
	}
}

class Tv extends Product {
	Tv() { }

	public String toString() {
		return "Tv";
	}
}